<script setup >
import { ref, defineProps } from 'vue'
import MyDialog from '@/components/MyDialog.vue'
import MyAlarm from '@/components/MyAlarm.vue'



</script>
<template>
  <!-- 右侧 -->
  <el-col class="rightChart">
    <!-- 设备状态 -->
    <el-row class="fameSB">
      <el-row class="ChartTitle">设备状态</el-row>
      <el-row class="ChartContentC">
        <MyDialog />
      </el-row>
    </el-row>

    <!-- 告警信息 -->
    <el-row class="fameME">
      <el-row class="ChartTitle">告警信息</el-row>
      <el-row class="ChartContentCC">
        <MyAlarm/>
      </el-row>
    </el-row>
  </el-col>

</template>
<style scoped>
.rightChart {
  position: absolute;
  height: calc(100% - 80px);
  z-index: 1;
  right: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column; /* 垂直排列 */
  justify-content: space-between; /* 子元素垂直居中 */
  align-items: center; /* 子元素水平居中 */
  gap: 20px;
  /* 渐变背景色 从左到右 */
  background: linear-gradient(to right, #115d2e71, #4ade8077);
  /* 透明背景 */
  background-color: rgba(0, 0, 0, 0.5);
  /* 阴影 */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);

}

.ChartTitle {
  width: 280px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  background-color: #115D2E;
  color: #4ADE80;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}


.fameSB,
.fameME {
  width: 300px;
  padding: 0 10px;
  border-radius: 10px;
}

.ChartContentC {
  margin-top: 10px;
  height: 200px;
  width: 300px;
  background-color: #000000;
  border-radius: 10px;
}

.ChartContentCC {
  height: 400px;
  width: 300px;
  background-color: #000000;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  scrollbar-color: #4ADE80 #000; /* 滑块颜色 | 轨道颜色 */
  scrollbar-width: thin; /* 可选值：auto|thin|none */
}
</style>
